/***********************************************************************\
*                                                                       *
* This file was created by Component Internal Interface Engine software *
*  Copyright(c) 2000-2006 by Krzysztof Pozniak (pozniak@ise.pw.edu.pl)  *
*                           All Rights Reserved.                        *
*                                                                       *
\***********************************************************************/

package cii_tb6s;

import cii_lib.*;

public class CTB6S_KX1 {

  public CCII_COMPONENT _TB6S_KX1;

  public static class CCREATOR extends CCII_ACCESS_SCON {
    private StringBuffer _Val=new StringBuffer();
    public CCREATOR(String name, int size) {
      super(name, size); Set( _Val);
      _Val.append("PERG");
    }
  }
  public static final CCREATOR CREATOR=new CCREATOR("CREATOR",0);

  public static class CNAME extends CCII_ACCESS_SCON {
    private StringBuffer _Val=new StringBuffer();
    public CNAME(String name, int size) {
      super(name, size); Set( _Val);
      _Val.append("SP601");
    }
  }
  public static final CNAME NAME=new CNAME("NAME",0);

  public static class CVERSION extends CCII_ACCESS_HCON {
    private StringBuffer _Val=new StringBuffer();
    public CVERSION(String name, int size) {
      super(name, size); Set( _Val);
      _Val.append("0001");
    }
  }
  public static final CVERSION VERSION=new CVERSION("VERSION",0);

  private CCII_ACCESS_IPAR _CHECK_SUM;
  private CCII_ACCESS_IPAR _IPAR_ADC_DATA_WIDTH;
  private CCII_ACCESS_IPAR _IPAR_ADC_NUM;
  private CCII_ACCESS_IPAR _IPAR_ADC_WIDTH;
  private CCII_ACCESS_IR _BITS_DAC_SEL;
  private CCII_ACCESS_IR _BITS_ADC_SEL;
  private CCII_ACCESS_IR _BITS_REG_DATA_OUT;
  private CCII_ACCESS_RO _BITS_REG_DATA_IN;
  private CCII_ACCESS_WO _BITS_REG_CLK;
  private CCII_ACCESS_WO _BITS_REG_STR;
  private CCII_ACCESS_WO _BITS_CAL_STR;
  private CCII_IDENTIFICATOR[] _COMP_ID;
  public CTB6S_KX1(CCII_TABLE_INDEX itab, int cidx, CCII_INTERFACE interf, CCII_COMPONENT parent) {
    _TB6S_KX1=new CCII_COMPONENT(itab,cidx,parent);
    _CHECK_SUM=null;
    _IPAR_ADC_DATA_WIDTH=null;
    _IPAR_ADC_NUM=null;
    _IPAR_ADC_WIDTH=null;
    _BITS_DAC_SEL=null;
    _BITS_ADC_SEL=null;
    _BITS_REG_DATA_OUT=null;
    _BITS_REG_DATA_IN=null;
    _BITS_REG_CLK=null;
    _BITS_REG_STR=null;
    _BITS_CAL_STR=null;
    _COMP_ID=null;
    int _cnum_;
    if(_TB6S_KX1.Number()==0) return;
    _CHECK_SUM = new CCII_ACCESS_IPAR(itab,_TB6S_KX1);
    _IPAR_ADC_DATA_WIDTH = new CCII_ACCESS_IPAR(itab,_TB6S_KX1);
    _IPAR_ADC_NUM = new CCII_ACCESS_IPAR(itab,_TB6S_KX1);
    _IPAR_ADC_WIDTH = new CCII_ACCESS_IPAR(itab,_TB6S_KX1);
    _BITS_DAC_SEL = new CCII_ACCESS_IR(itab,interf,_TB6S_KX1);
    _BITS_ADC_SEL = new CCII_ACCESS_IR(itab,interf,_TB6S_KX1);
    _BITS_REG_DATA_OUT = new CCII_ACCESS_IR(itab,interf,_TB6S_KX1);
    _BITS_REG_DATA_IN = new CCII_ACCESS_RO(itab,interf,_TB6S_KX1);
    _BITS_REG_CLK = new CCII_ACCESS_WO(itab,interf,_TB6S_KX1);
    _BITS_REG_STR = new CCII_ACCESS_WO(itab,interf,_TB6S_KX1);
    _BITS_CAL_STR = new CCII_ACCESS_WO(itab,interf,_TB6S_KX1);
    _COMP_ID = new CCII_IDENTIFICATOR[_cnum_=Math.max(itab.GetItem().Repeat,1)];
    for (int count=0; count<_cnum_; count ++)
      _COMP_ID[count]=new CCII_IDENTIFICATOR(itab,count,interf,_TB6S_KX1);
  }
  public CCII_COMPONENT TB6S_KX1() {return(_TB6S_KX1.Number()==0?null:_TB6S_KX1);};
  public CCII_ACCESS_IPAR CHECK_SUM() {return(_CHECK_SUM);};
  public CCII_ACCESS_IPAR IPAR_ADC_DATA_WIDTH() {return(_IPAR_ADC_DATA_WIDTH);};
  public CCII_ACCESS_IPAR IPAR_ADC_NUM() {return(_IPAR_ADC_NUM);};
  public CCII_ACCESS_IPAR IPAR_ADC_WIDTH() {return(_IPAR_ADC_WIDTH);};
  public CCII_ACCESS_IR BITS_DAC_SEL() {return(_BITS_DAC_SEL);};
  public CCII_ACCESS_IR BITS_ADC_SEL() {return(_BITS_ADC_SEL);};
  public CCII_ACCESS_IR BITS_REG_DATA_OUT() {return(_BITS_REG_DATA_OUT);};
  public CCII_ACCESS_RO BITS_REG_DATA_IN() {return(_BITS_REG_DATA_IN);};
  public CCII_ACCESS_WO BITS_REG_CLK() {return(_BITS_REG_CLK);};
  public CCII_ACCESS_WO BITS_REG_STR() {return(_BITS_REG_STR);};
  public CCII_ACCESS_WO BITS_CAL_STR() {return(_BITS_CAL_STR);};
  public CCII_IDENTIFICATOR COMP_ID(int num) {return(_COMP_ID[num].CII_IDENTIFICATOR()==null?null:_COMP_ID[num]);};
}
